import request from 'utils/request.js'

// 请求标签列表数据
export function getTagList(params) {
	return request(
		{
			url: 'admin/category',
			method: 'GET'
		}
	)
}

// 删除标签数据
export function deleteTag(params) {
	return request(
		{
			url: 'admin/category/delete',
			method: 'GET',
			params: params
		}
	)
}


// 添加标签数据
export function addTag(params) {
	return request(
		{
			url: 'admin/category/add',
			method: 'POST',
			data: params
		}
	)
}


// 编辑标签数据
export function editTag(params) {
	return request(
		{
			url: 'admin/category/update',
			method: 'POST',
			data: params
		}
	)
}